package com.dqx.haoqiu.repository.repository.news.local;

import com.dqx.haoqiu.repository.db.NewsDao;
import com.dqx.haoqiu.repository.entity.NewsEntity;
import com.dqx.haoqiu.repository.repository.news.NewsSource;

import java.util.List;

import javax.inject.Inject;

import io.reactivex.Observable;

/**
 * 本地数据源：可以用来存取本地缓存的数据，可以结合SharePrefence或本地数据库Room等框架
 */
public class NewsLocalSource implements NewsSource {
    NewsDao newsDao;

    @Inject
    public NewsLocalSource(NewsDao newsDao) {
        this.newsDao = newsDao;
    }

    @Override
    public Observable<List<NewsEntity>> getNews(int channel, int page, int page_size, long currentTime, int category) {
        return null;
    }
}